<!DOCTYPE html>
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="StyleSheet" type="text/css" href="/tpa/admin.css">
   <script type="text/javascript" src="/lib/js/jquery.js"></script>
   <script type="text/javascript" src="/lib/js/meccano.js"></script>
   <script type="text/javascript">
    {%ErrorHandler->getLastError assign='error'%}
    {%ErrorHandler->getSuccess assign='make'%}

      {%if !$error.menu && !$make.menu%}
      //window.onload = function(){setTimeout(Redirector, {%$CONFIG->reload_timeout%}*1000);}
      {%/if%}
      {%if $make.exec%}
      $(document).ready(function(){
         {%$make.exec%}({%$make.result%});
      });
      {%/if%}
   </script>
   <style type="text/css">
      .returnmenu
      {
         text-align:left;
         width:200px;
      }
   </style>
</head>
<body>

   <div style="padding-top:100px;text-align:center;" align="center">
      {%if $error%}

      {%assign var='k' value=$error.varkey%}
      <span class="warn">{%$TR->getTranslation('error', $k)%}</span>

      {%elseif $make%}

      {%assign var='k' value=$make.varkey%}
      <span class="success" style="font-size:120%;padding:10px 200px;">{%$TR->getTranslation('make', $k)%}</span>

      {%/if%}

      <br /><br />
   {%if $make.text%}<h3 style="margin-bottom: 15px;">{%$make.text%}</h3>{%elseif $error.text%}<h3 style="margin-bottom: 15px;">{%$error.text%}</h3>{%/if%}
   {%assign var='menu' value=false%}
   {%if $error.menu%}{%assign var='menu' value=$error.menu%}{%elseif $make.menu%}{%assign var='menu' value=$make.menu%}{%/if%}
   {%if $menu%}
   {%foreach from=$menu key='v' item='m' name='i'%}
   {%if $smarty.foreach.i.first%}<div align="center"><div class="returnmenu" align="left">{%/if%}
   <a href="{%$m%}">{%$TR->getTranslation('meccano', $v)%}</a><br />
   {%if $smarty.foreach.i.last%}</div></div>{%/if%}
   {%/foreach%}
   {%/if%}
   </div>
</body>
</html>